package com.designpatternspart2.behavioraldesignpatterns.mementopattern;

/**
 *
 * @author Lance
 */
public class DietInfoCareTaker
{

    private Object objMemento;

    public void saveState(DietInfo dietInfo)
    {
        setObjMemento(dietInfo.save());
    }

    public void restoreState(DietInfo dietInfo)
    {
        dietInfo.restore(getObjMemento());
    }

    public Object getObjMemento()
    {
        return objMemento;
    }

    public void setObjMemento(Object objMemento)
    {
        this.objMemento = objMemento;
    }
}
